import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../components/Login'
//import Welcome from '../components/Welcome.vue'
//import product from '../components/product.vue'
Vue.use(VueRouter)

export default new VueRouter({
  routes: [
    { path: '/', redirect: '/login' },
    { path: '/login', component: Login,
    //  redirect:'/welcome',
      children: [
        // { path:'/welcome',component:Welcome Pact }
        {path: '/product',component: ()=> import('../components/product.vue') },
        {path: '/pact',component: ()=> import('../components/pact.vue') },
        {path: '/supply',component: ()=> import('../components/supply.vue') }
      
      ] }
  //  { path: '/home', component: Home } 
    ]  
})

